package org.come.xingpan;

import com.tool.btn.FormsOnOffBtn;
import com.tool.image.ImageMixDeal;
import com.tool.role.BaseXingpans;
import com.tool.role.RoleData;
import com.tool.role.RoleProperty;
import com.tool.tcp.Sprite;
import com.tool.tcp.SpriteFactory;
import com.tool.tcpimg.UIUtils;
import org.come.Frame.MsgJframe;
import org.come.Frame.XingPanSXJframe;
import org.come.Frame.ZhuFrame;
import org.come.bean.Skill;
import org.come.entity.Goodstable;
import org.come.until.CutButtonImage;
import org.come.until.FormsManagement;
import org.come.until.GoodsListFromServerUntil;
import org.come.until.UserMessUntil;

import javax.imageio.ImageIO;
import javax.swing.*;
import java.awt.*;
import java.awt.event.MouseAdapter;
import java.awt.event.MouseEvent;
import java.awt.image.BufferedImage;
import java.io.File;
import java.io.IOException;
import java.math.BigDecimal;
import java.util.ArrayList;
import java.util.List;
import java.util.Vector;

//import static org.come.test.Main.imageMap;

/**
 * 星盘主面板
 * <p>
 * Title : JpanelXingCardMain
 * </p>
 *
 * @author : HGC
 * @version : 1.0.0
 * @date : 2019年8月6日 上午10:38:11
 */
public class JpanelXingCardMain extends JPanel {

    // 计算出指定FPS数值中，每帧需要多少时间
    static final long fpsTime = (long) ((Double.valueOf(1000) / Double.valueOf(60)) * 1000000);
    long now = System.nanoTime();
    long now2 = 0;
    // 每次绘制图像耗时（毫秒）
    long total = 0;
    static final int DEFAULT_FPS1 = 60;
    static final int DEFAULT_CHA = 1000000;


    /**
     * cardBackImg星盘背景图<br>
     * cardImg星图技能图标<br>
     * lockBtn 拥有魂值<br>
     * <p>
     * materialsImgs消耗材料图片<br>
     * radioOneImg单选第一个<br>
     * radioTwoImg单选第二个<br>
     * consumeOneLab消耗栏第一个<br>
     * consumeTwoLab消耗栏第二个<br>
     * starArryBackImg星阵边框<br>
     * starArryImg星阵图片<br>
     */
    private JLabel cardBackImg, cardImg, materialsImgs, radioOneImg, radioTwoImg, consumeOneLab,
            consumeTwoLab, starArryImg, lockBtn, xpwenzi1, xpwenzi2, xpwenzi3, xpwenzi4, xpwenzi5, xpwenzi6;

    /**
     * lockBtn锁图标11<br>
     * unlockBtn解锁图标12<br>
     * attributeMenuBtn星图按钮1<br>
     * recastMenuBtn强化按钮2<br>
     * cultivateBtn洗练按钮3<br>
     * upgradeBtn星魂按钮4<br>
     * redoBtn屬性按钮5<br>
     * lianStarBtn分解按钮6<br>
     * caozuoBtn坤按钮20<br>天巧 天哭 天暴 天慧 天牢 天牢 8
     * joinBtn艮按钮21<br> 	天损  天罪 天竟 天剑 天寿 7
     * fetchBtn坎按钮22<br>	天退 天究 天微  天杀 天异 6
     * soulBackBtn巽按钮23<br> 天速  天空 天佑  天暗 5
     * exchangeBtn震按钮24<br>天捷 天立 天伤  天孤 天满 4
     * supplementBtn离按钮25<br> 天富 天贵  天英  天威 3
     * deleteBtn兑按钮26<br> 天猛 天雄  天勇 天闲 2
     * transferBtn乾按钮27<br> 天机 天罡 天魁 1
     */
    private BtnStarCard unlockBtn, attributeMenuBtn, recastMenuBtn, cultivateBtn, lianStarBtn, upgradeBtn,
            redoBtn, caozuoBtn, joinBtn, fetchBtn, soulBackBtn, exchangeBtn, supplementBtn, deleteBtn, transferBtn;

    /**
     * materialsLab拥有材料12个格子<br>
     * starCardLab拥有材料24个格子<br>
     */
    private JLabel[] materialsLab, gemBackImg, gemImg;


    /**
     * 大菜单项标识 <br>
     * 1星图菜单按钮标识<br>
     * 2强化菜单按钮标识<br>
     * 3洗练<br>
     */
    private int bigType = 1;


    private int bigType_old = 1;


    /**
     * 星盘标识<br>
     * 1-8 8个星盘<br>
     * 默认1<br>
     */
    private int radioType = 1;

    /**
     * 当前选中的星卡Id
     */
    private BigDecimal chooseStarCardId;

    /**
     * 当前选中的材料Id
     */
    private BigDecimal chooseMaterialsId;


    /**
     * 星盘边框动画
     */
    private List<AstrolabeBorderAnimation> astrolabeBorderAnimationList = new ArrayList<>();
    private AstrolabeBorderAnimation[] astrolabeBorderAnimationArr = new AstrolabeBorderAnimation[8];

    static Sprite tcp_xp_km = SpriteFactory.VloadSprite("resource/mouse/特效/xp-km.tcp", null);//特效路径;


    /**
     * 消耗金钱
     */
    private BigDecimal money;
    private long materialType = 0;
    private long time;
    private boolean isPlayXPKM = false;

    public void setTime(Long time) {
        this.time = time;
    }

    public void setIsPlayXPKM(Boolean b) {
        isPlayXPKM = b;
        time = System.currentTimeMillis();
        if (b) {
            hideStrengthen();
        } else {
            cardImg.setVisible(true);
            changeBigMenuLeftView1(getBigType());
        }
    }

    /**
     * 隐藏强化相关信息
     */
    public void hideStrengthen() {


        if (cardBackImg != null)
            cardBackImg.setVisible(false);
        cardImg.setVisible(false);
        radioOneImg.setVisible(false);
        //星图
        xpwenzi1.setVisible(false);
        xpwenzi2.setVisible(false);
        xpwenzi3.setVisible(false);
        xpwenzi4.setVisible(false);
        xpwenzi5.setVisible(false);
        xpwenzi6.setVisible(false);
        //强化
        radioOneImg.setVisible(false);
        radioTwoImg.setVisible(false);
        for (int v = 0; v < 15; v++) {
            gemImg[v].setVisible(false);
            gemBackImg[v].setVisible(false);
        }
        //炼化
        consumeOneLab.setVisible(false);
        consumeTwoLab.setVisible(false);
        lockBtn.setVisible(false);
        materialsImgs.setVisible(false);
        //按钮
        lianStarBtn.setVisible(false);

    }


    public JpanelXingCardMain() {
        setPreferredSize(new Dimension(700, 425));
        setOpaque(false);
        setLayout(null);
        // 关闭按钮事件
        FormsOnOffBtn offBtn = new FormsOnOffBtn("inkImg/old/2/1.png", 1, 122);
        offBtn.setBounds(700 - 37, 10, 25, 25);
        this.add(offBtn);
//        setIsPlayXPKM(true);

        /** 添加组件 */
        //强化
        getGemImg();//实际等级 强化
        getGemBackImg();//全部等级 强化
        getRadioTwoImg();//道具图标
        getRadioOneImg(); //道具数量


        //星图
        getCardImg();//技能图标
        //星魂文字名
        getXpwenzi1();
        getXpwenzi2();
        getXpwenzi3();
        getXpwenzi4();
        getXpwenzi5();
        getXpwenzi6();
        //炼化
        getConsumeOneLab();//炼化属性
        getConsumeTwoLab();//炼化属性2
        getMaterialsImgs();//显示消耗
        getLockBtn();//实际拥有

        //激活按钮 强化 洗练按钮
        getLianStarBtn();

        //8个背景图
        getCardBackImg(); //背景图8 按钮切换背景
        //1-8 卦象按钮
        getCaozuoBtn();//8
        getJoinBtn();//7
        getFetchBtn();//6
        getSoulBackBtn();//5
        getExchangeBtn();//4
        getSupplementBtn();//3
        getDeleteBtn();//2
        getTransferBtn();//1
        //其他按钮 b381-385
        getAttributeMenuBtn();
        getRecastMenuBtn();
        getCultivateBtn();
        getUpgradeBtn();
        getRedoBtn();
        getUnlockBtn();
        changeBigMenuLeftView1(1);//首次打开显示星图
        setIsPlayXPKM(true);
    }

    /**
     * 大菜单项切换面板
     *
     * @param
     */
    public void changeBigMenuLeftView1(int type) {
  /*      if (type == -1) {
            if (bigType == -1) {
                type = 1;
            } else {
                return;
            }
        }*/
        bigType = type;
        if (bigType == 1) {
            viewAttributeMenuBtn(true);//星图
            viewRecastMenuBtn(false);
            viewCultivateBtn(false);
        } else if (bigType == 2) {
            viewRecastMenuBtn(true);//强化
            viewAttributeMenuBtn(false);//星图
            viewCultivateBtn(false);
        } else if (bigType == 3) {
            viewAttributeMenuBtn(false);
            viewRecastMenuBtn(false);
            viewCultivateBtn(true);//炼化
        }
    }

    /**
     * 主页星图显示
     * 切换星盘,选中
     *
     * @param
     */
    public void viewAttributeMenuBtn(boolean type) {
        cardImg.setVisible(type);
        if (cardBackImg != null)
            cardBackImg.setVisible(type);
        xpwenzi1.setVisible(false);
        xpwenzi2.setVisible(false);
        xpwenzi3.setVisible(false);
        xpwenzi4.setVisible(false);
        xpwenzi5.setVisible(false);
        xpwenzi6.setVisible(false);
        if (radioType == 8) {
            xpwenzi1.setText("天魁");
            xpwenzi1.setBounds(270, 140, 40, 20);
            xpwenzi2.setText("天罡");
            xpwenzi2.setBounds(290, 240, 40, 20);
            xpwenzi3.setText("天机");
            xpwenzi3.setBounds(400, 175, 40, 20);
            xpwenzi1.setVisible(type);
            xpwenzi2.setVisible(type);
            xpwenzi3.setVisible(type);
        } else if (radioType == 4) {
            xpwenzi1.setText("天暗");
            xpwenzi1.setBounds(300, 110, 40, 20);
            xpwenzi2.setText("天佑");
            xpwenzi2.setBounds(280, 195, 40, 20);
            xpwenzi3.setText("天空");
            xpwenzi3.setBounds(290, 265, 40, 20);
            xpwenzi4.setText("天速");
            xpwenzi4.setBounds(370, 230, 40, 20);
            xpwenzi1.setVisible(type);
            xpwenzi2.setVisible(type);
            xpwenzi3.setVisible(type);
            xpwenzi4.setVisible(type);
        } else if (radioType == 3) {
            xpwenzi1.setText("天异");
            xpwenzi1.setBounds(350, 95, 40, 20);
            xpwenzi2.setText("天杀");
            xpwenzi2.setBounds(280, 180, 40, 20);
            xpwenzi3.setText("天微");
            xpwenzi3.setBounds(265, 265, 40, 20);
            xpwenzi4.setText("天究");
            xpwenzi4.setBounds(330, 220, 40, 20);
            xpwenzi5.setText("天退");
            xpwenzi5.setBounds(400, 150, 40, 20);
            xpwenzi1.setVisible(type);
            xpwenzi2.setVisible(type);
            xpwenzi3.setVisible(type);
            xpwenzi4.setVisible(type);
            xpwenzi5.setVisible(type);
        } else if (radioType == 2) {
            xpwenzi1.setText("天寿");
            xpwenzi1.setBounds(360, 105, 40, 20);
            xpwenzi2.setText("天剑");
            xpwenzi2.setBounds(410, 170, 40, 20);
            xpwenzi3.setText("天竟");
            xpwenzi3.setBounds(290, 180, 40, 20);
            xpwenzi4.setText("天罪");
            xpwenzi4.setBounds(360, 225, 40, 20);
            xpwenzi5.setText("天损");
            xpwenzi5.setBounds(280, 230, 40, 20);
            xpwenzi1.setVisible(type);
            xpwenzi2.setVisible(type);
            xpwenzi3.setVisible(type);
            xpwenzi4.setVisible(type);
            xpwenzi5.setVisible(type);
        } else if (radioType == 1) {
            xpwenzi1.setText("天败");
            xpwenzi1.setBounds(310, 110, 40, 20);
            xpwenzi2.setText("天牢");
            xpwenzi2.setBounds(285, 165, 40, 20);
            xpwenzi3.setText("天慧");
            xpwenzi3.setBounds(320, 210, 40, 20);
            xpwenzi4.setText("天暴");
            xpwenzi4.setBounds(260, 225, 40, 20);
            xpwenzi5.setText("天笨");
            xpwenzi5.setBounds(410, 190, 40, 20);
            xpwenzi6.setText("天巧");
            xpwenzi6.setBounds(380, 130, 40, 20);
            xpwenzi1.setVisible(type);
            xpwenzi2.setVisible(type);
            xpwenzi3.setVisible(type);
            xpwenzi4.setVisible(type);
            xpwenzi5.setVisible(type);
            xpwenzi6.setVisible(type);
        } else if (radioType == 5) {
            xpwenzi1.setText("天满");
            xpwenzi1.setBounds(290, 115, 40, 20);
            xpwenzi2.setText("天孤");
            xpwenzi2.setBounds(350, 110, 40, 20);
            xpwenzi3.setText("天伤");
            xpwenzi3.setBounds(350, 170, 40, 20);
            xpwenzi4.setText("天立");
            xpwenzi4.setBounds(420, 170, 40, 20);
            xpwenzi5.setText("天捷");
            xpwenzi5.setBounds(380, 250, 40, 20);
            xpwenzi1.setVisible(type);
            xpwenzi2.setVisible(type);
            xpwenzi3.setVisible(type);
            xpwenzi4.setVisible(type);
            xpwenzi5.setVisible(type);
        } else if (radioType == 6) {
            xpwenzi1.setText("天威");
            xpwenzi1.setBounds(310, 95, 40, 20);
            xpwenzi2.setText("天英");
            xpwenzi2.setBounds(285, 160, 40, 20);
            xpwenzi3.setText("天贵");
            xpwenzi3.setBounds(370, 210, 40, 20);
            xpwenzi4.setText("天富");
            xpwenzi4.setBounds(400, 250, 40, 20);
            xpwenzi1.setVisible(type);
            xpwenzi2.setVisible(type);
            xpwenzi3.setVisible(type);
            xpwenzi4.setVisible(type);
        } else if (radioType == 7) {
            xpwenzi1.setText("天闲");
            xpwenzi1.setBounds(260, 185, 40, 20);
            xpwenzi2.setText("天勇");
            xpwenzi2.setBounds(275, 265, 40, 20);
            xpwenzi3.setText("天雄");
            xpwenzi3.setBounds(370, 210, 40, 20);
            xpwenzi4.setText("天猛");
            xpwenzi4.setBounds(400, 120, 40, 20);
            xpwenzi1.setVisible(type);
            xpwenzi2.setVisible(type);
            xpwenzi3.setVisible(type);
            xpwenzi4.setVisible(type);
        }
    }

    /**
     * 主页强化显示
     * true false
     */
    public void viewRecastMenuBtn(boolean type) {

        //强化满展示标记
        Boolean b = false;

        radioOneImg.setVisible(false);
        radioTwoImg.setVisible(false);
        getLianStarBtn().setVisible(true);
        for (int v = 0; v < 15; v++) {
            gemImg[v].setVisible(false);
        }
        radioOneImg.setText("暂未激活");
        radioOneImg.setVisible(type);
        Vector<BaseXingpans> xingpansVector = RoleProperty.getRoleProperty().xingpanVector;

        for (int z = 0; z < xingpansVector.size(); z++) {
            BaseXingpans baseXingpans = xingpansVector.get(z);
            if (baseXingpans.getBh() == radioType) {
                int vvvv = baseXingpans.getXs();
                int shul = 1;
                for (int v = 0; v < vvvv; v++) {
                    gemImg[v].setVisible(type);
                }
                if (vvvv == 0 || vvvv == 5 || vvvv == 10) {
                    shul = 1;
                } else if (vvvv == 1 || vvvv == 6 || vvvv == 11) {
                    shul = 2;
                } else if (vvvv == 2 || vvvv == 7 || vvvv == 12) {
                    shul = 3;
                } else if (vvvv == 3 || vvvv == 8 || vvvv == 13) {
                    shul = 4;
                } else if (vvvv == 4 || vvvv == 9 || vvvv == 14) {
                    shul = 5;
                }
                if (vvvv < 5) {
                    radioTwoImg.setIcon(CutButtonImage.getImage("img/item/xplansj.png", 60, 60));
                    radioTwoImg.setText("99001");
                    Goodstable goodstable = UserMessUntil.getgoodstable(new BigDecimal(99001));
                    int goodNum = GoodsListFromServerUntil.getGoodNum(goodstable.getGoodsid());
                    radioOneImg.setText(goodNum + "/" + shul);
                } else if (vvvv < 10) {
                    radioTwoImg.setIcon(CutButtonImage.getImage("img/item/xplvsj.png", 60, 60));
                    radioTwoImg.setText("99002");
                    Goodstable goodstable = UserMessUntil.getgoodstable(new BigDecimal(99002));
                    int goodNum = GoodsListFromServerUntil.getGoodNum(goodstable.getGoodsid());
                    radioOneImg.setText(goodNum + "/" + shul);
                } else if (vvvv < 15) {
                    radioTwoImg.setIcon(CutButtonImage.getImage("img/item/xphsj.png", 60, 60));
                    radioTwoImg.setText("99003");
                    Goodstable goodstable = UserMessUntil.getgoodstable(new BigDecimal(99003));
                    int goodNum = GoodsListFromServerUntil.getGoodNum(goodstable.getGoodsid());
                    radioOneImg.setText(goodNum + "/" + shul);
                } else if (vvvv >= 15) {
                    radioTwoImg.setText("强化已满");
                    radioOneImg.setText("强化已满");
                    BtnStarCard lianStarBtn = getLianStarBtn();
                    if ("强化".equals(lianStarBtn.getText())) {
                        b = true;
                        getLianStarBtn().setVisible(false);
                    }
                }
                radioOneImg.setVisible(type);
                radioTwoImg.setVisible(b ? false : type);

            }
        }
        for (int i = 0; i < gemBackImg.length; i++) {
            gemBackImg[i].setVisible(type);
        }

    }

    /**
     * 炼化页面显示
     *
     * @param type
     */
    public void viewCultivateBtn(boolean type) {
        lockBtn.setVisible(false);
        materialsImgs.setVisible(false);
        consumeOneLab.setText("");
        consumeTwoLab.setText("");
        materialsImgs.setText("暂未激活");
        materialsImgs.setVisible(type);
        Vector<BaseXingpans> xingpansVector = RoleProperty.getRoleProperty().xingpanVector;
        if(XingPanSXJframe.getXingPanSXJpanel()!=null) {
            XingPanSXJframe.getXingPanSXJpanel().getXpkx();
        }
        for (int z = 0; z < xingpansVector.size(); z++) {
            BaseXingpans baseXingpans = xingpansVector.get(z);
            if (baseXingpans.getBh() == radioType) {
                String shuk = baseXingpans.getKey();//当前属性名
                double shuy = baseXingpans.getKeyValue();//当前属性数值
                String shuk1 = baseXingpans.getKey1();//当前属性名
                double shuy1 = baseXingpans.getKeyValue1();//当前属性数值
                consumeOneLab.setText(shuk + ": " + String.format("%.2f", shuy));
                consumeTwoLab.setText(shuk1 + ": " + String.format("%.2f", shuy1));
                consumeOneLab.setVisible(type);
                consumeTwoLab.setVisible(type);

                //消耗
                materialsImgs.setText("消耗魂值: " + (radioType * 10));
                BigDecimal big = RoleData.getRoleData().getLoginResult().getScoretype("魂值") != null ? RoleData
                        .getRoleData().getLoginResult().getScoretype("魂值")
                        : new BigDecimal(0);
                lockBtn.setText("拥有魂值: " + big.toString());
                lockBtn.setVisible(type);

            }
        }

    }

    /**
     * 服务器刷新面板
     */
    public void serverRefreshView(BaseXingpans baseXingpans) {
        int vvv = baseXingpans.getXs();
        int vvvv = baseXingpans.getBh();
        if (vvvv == radioType && bigType == 2) {
            for (int v = 0; v < vvv; v++) {
                gemImg[v].setVisible(true);
            }
            int shul = 1;
            if (vvvv == 0 || vvvv == 5 || vvvv == 10) {
                shul = 1;
            } else if (vvvv == 1 || vvvv == 6 || vvvv == 11) {
                shul = 2;
            } else if (vvvv == 2 || vvvv == 7 || vvvv == 12) {
                shul = 3;
            } else if (vvvv == 3 || vvvv == 8 || vvvv == 13) {
                shul = 4;
            } else if (vvvv == 4 || vvvv == 9 || vvvv == 14) {
                shul = 5;
            }
            if (vvvv < 5) {
                radioTwoImg.setIcon(CutButtonImage.getImage("img/item/xplansj.png", 60, 60));
                radioTwoImg.setText("99001");
                Goodstable goodstable = UserMessUntil.getgoodstable(new BigDecimal(99001));
                int goodNum = GoodsListFromServerUntil.getGoodNum(goodstable.getGoodsid());
                radioOneImg.setText(goodNum + "/" + shul);
            } else if (vvvv < 10) {
                radioTwoImg.setIcon(CutButtonImage.getImage("img/item/xplvsj.png", 60, 60));
                radioTwoImg.setText("99002");
                Goodstable goodstable = UserMessUntil.getgoodstable(new BigDecimal(99002));
                int goodNum = GoodsListFromServerUntil.getGoodNum(goodstable.getGoodsid());
                radioOneImg.setText(goodNum + "/" + shul);
            } else if (vvvv < 15) {
                radioTwoImg.setIcon(CutButtonImage.getImage("img/item/xphsj.png", 60, 60));
                radioTwoImg.setText("99003");
                Goodstable goodstable = UserMessUntil.getgoodstable(new BigDecimal(99003));
                int goodNum = GoodsListFromServerUntil.getGoodNum(goodstable.getGoodsid());
                radioOneImg.setText(goodNum + "/" + shul);
            } else if (vvvv >= 15) {
                radioTwoImg.setText("强化已满");
            }

        }

        consumeOneLab.setText(baseXingpans.getKey() + ": " + String.format("%.2f", baseXingpans.getKeyValue()));
        consumeTwoLab.setText(baseXingpans.getKey1() + ": " + String.format("%.2f", baseXingpans.getKeyValue1()));
        changeBigMenuLeftView1(bigType);

    }


    private ImageIcon iconBack;
    private ImageIcon iconLeft;
    private ImageIcon iconRight;
    // 名字背景
    private ImageIcon iconName;
    // 线
    private ImageIcon iconWire;


    public ImageIcon getIconBack() {
        return iconBack;
    }

    public void setIconBack(ImageIcon iconBack) {
        this.iconBack = iconBack;
    }

    public ImageIcon getIconLeft() {
        return iconLeft;
    }

    public void setIconLeft(ImageIcon iconLeft) {
        this.iconLeft = iconLeft;
    }

    public ImageIcon getIconRight() {
        return iconRight;
    }

    public void setIconRight(ImageIcon iconRight) {
        this.iconRight = iconRight;
    }

    public ImageIcon getIconName() {
        return iconName;
    }

    public void setIconName(ImageIcon iconName) {
        this.iconName = iconName;
    }

    public ImageIcon getIconWire() {
        return iconWire;
    }

    public void setIconWire(ImageIcon iconWire) {
        this.iconWire = iconWire;
    }


    public JLabel getCardBackImg() {
        if (cardBackImg == null) {
            cardBackImg = new JLabel();
            cardBackImg.setBounds(227, 70, 274, 274);
            cardBackImg.setIcon(CutButtonImage.getImage("inkImg/old/1/xpbj8.png", 250, 250));
            // cardBackImg.setOpaque(false);
            this.add(cardBackImg);
        }
        return cardBackImg;
    }

    public void setCardBackImg(JLabel cardBackImg) {
        this.cardBackImg = cardBackImg;
    }

    public JLabel getLockBtn() {
        if (lockBtn == null) {
            lockBtn = new JLabel();
            lockBtn.setBounds(290, 250, 150, 20);
            lockBtn.setOpaque(false);
            lockBtn.setVisible(false);
            lockBtn.setForeground(Color.white);
            lockBtn.setFont(UIUtils.TEXT_BOLD_FONT);
            this.add(lockBtn);
        }
        return lockBtn;
    }

    public void setLockBtn(JLabel lockBtn) {
        this.lockBtn = lockBtn;
    }

    public BtnStarCard getUnlockBtn() {
//        if (unlockBtn == null) {
//            unlockBtn = new BtnStarCard(imageMap.getImgMap().get("K157"),"K157", 1, "", 12, this);
//            unlockBtn.setBounds(38 + 47 + 25 + 25, 68 + 217 - 15 + 7, 18, 18);
//            this.add(unlockBtn);
//        }
        return unlockBtn;
    }

    public void setUnlockBtn(BtnStarCard unlockBtn) {
        this.unlockBtn = unlockBtn;
    }

    //	星图
    public BtnStarCard getAttributeMenuBtn() {
        if (attributeMenuBtn == null) {
            attributeMenuBtn = new BtnStarCard("inkImg/old/button/B381.png", 1, "", 1, this);
            attributeMenuBtn.setBounds(121, 124, 34, 65);
            this.add(attributeMenuBtn);
        }
        return attributeMenuBtn;
    }

    public void setAttributeMenuBtn(BtnStarCard attributeMenuBtn) {
        this.attributeMenuBtn = attributeMenuBtn;
    }

    //强化
    public BtnStarCard getRecastMenuBtn() {
        if (recastMenuBtn == null) {
            recastMenuBtn = new BtnStarCard("inkImg/old/button/B382.png", 1, "", 2, this);
            recastMenuBtn.setBounds(121, 188, 34, 52);
            this.add(recastMenuBtn);
        }
        return recastMenuBtn;
    }

    public void setRecastMenuBtn(BtnStarCard recastMenuBtn) {
        this.recastMenuBtn = recastMenuBtn;
    }

    //洗练
    public BtnStarCard getCultivateBtn() {
        if (cultivateBtn == null) {
            cultivateBtn = new BtnStarCard("inkImg/old/button/B383.png", 1, "", 3, this);
            cultivateBtn.setBounds(121, 240, 34, 67);
            this.add(cultivateBtn);
        }
        return cultivateBtn;
    }

    public void setCultivateBtn(BtnStarCard cultivateBtn) {
        this.cultivateBtn = cultivateBtn;
    }


    //按钮操作
    public BtnStarCard getLianStarBtn() {
        if (lianStarBtn == null) {
            lianStarBtn = new BtnStarCard("skin/8100226/newbutton/B20.png", 1, UIUtils.COLOR_BLACK, UIUtils.TEXT_HY16, "激活", 6, this);
            lianStarBtn.setBounds(320, 300, 59, 24);
            this.add(lianStarBtn);
        }
        return lianStarBtn;
    }

    public void setLianStarBtn(BtnStarCard lianStarBtn) {
        this.lianStarBtn = lianStarBtn;
    }

    public BtnStarCard getUpgradeBtn() {
        if (upgradeBtn == null) {
            upgradeBtn = new BtnStarCard("inkImg/old/button/B384.png", 1, "", 4, this);
            upgradeBtn.setBounds(545, 58, 30, 136);
            this.add(upgradeBtn);
        }
        return upgradeBtn;
    }

    public void setUpgradeBtn(BtnStarCard upgradeBtn) {
        this.upgradeBtn = upgradeBtn;
    }

    public BtnStarCard getRedoBtn() {
        if (redoBtn == null) {
            redoBtn = new BtnStarCard("inkImg/old/button/B385.png", 1, "", 5, this);
            redoBtn.setBounds(545, 225, 30, 136);
            this.add(redoBtn);
        }
        return redoBtn;
    }

    public void setRedoBtn(BtnStarCard redoBtn) {
        this.redoBtn = redoBtn;
    }

    public int getStarCardType() {
        return bigType;
    }

    public void setStarCardType(int starCardType) {
        this.bigType = starCardType;
    }


    public JLabel getCardImg() {
        if (cardImg == null) {
            cardImg = new JLabel();
            cardImg.setBounds(325, 245, 50, 50);
            cardImg.setIcon(CutButtonImage.getImage("inkImg/hongmu/soaringSkill/40×40/23001.png", 50, 50));
            cardImg.setOpaque(false);
            cardImg.setText("源源不绝");
            cardImg.addMouseListener(new MouseAdapter() {

                @Override
                public void mouseEntered(MouseEvent e) {
                    if (cardImg.isVisible()) {
                        Skill skill = UserMessUntil.getskill1(cardImg.getText());
                        if (skill == null) {
                            return;
                        }
                        MsgJframe
                                .getJframe()
                                .getJapnel()
                                .SM2(skill);
                    }
                }

                @Override
                public void mouseExited(MouseEvent e) {
                    FormsManagement.HideForm(46);
                }

            });
            this.add(cardImg);
        }
        return cardImg;
    }

    public void setCardImg(JLabel cardImg) {
        this.cardImg = cardImg;
    }


    public JLabel getMaterialsImgs() {
        if (materialsImgs == null) {
            materialsImgs = new JLabel("", SwingConstants.CENTER);
            materialsImgs.setBounds(270, 220, 150, 20);
            materialsImgs.setOpaque(false);
            materialsImgs.setVisible(false);
            materialsImgs.setForeground(Color.white);
            materialsImgs.setFont(UIUtils.TEXT_NAME_FONT);
            materialsImgs.setText("");
            this.add(materialsImgs);
        }
        return materialsImgs;
    }

    public void setMaterialsImgs(JLabel materialsImgs) {
        this.materialsImgs = materialsImgs;
    }

    public JLabel getRadioOneImg() {
        if (radioOneImg == null) {
            radioOneImg = new JLabel();
            radioOneImg.setBounds(330, 170, 100, 20);
            radioOneImg.setOpaque(false);
            radioOneImg.setForeground(Color.yellow);
            radioOneImg.setFont(UIUtils.TEXT_HY16);
            radioOneImg.setVisible(false);
            //radioOneImg.setIcon(CutButtonImage.getImage("inkImg/old/button/B118.png", 7, 7));

            if (radioTwoImg.getText().contains("99001")) {
                Goodstable goodstable = UserMessUntil.getgoodstable(new BigDecimal(99001));
                int goodNum = GoodsListFromServerUntil.getGoodNum(goodstable.getGoodsid());
                radioOneImg.setText(goodNum + "/1");
            } else if (radioTwoImg.getText().contains("99002")) {
                Goodstable goodstable = UserMessUntil.getgoodstable(new BigDecimal(99002));
                int goodNum = GoodsListFromServerUntil.getGoodNum(goodstable.getGoodsid());
                radioOneImg.setText(goodNum + "/1");
            } else if (radioTwoImg.getText().contains("99003")) {
                Goodstable goodstable = UserMessUntil.getgoodstable(new BigDecimal(99003));
                int goodNum = GoodsListFromServerUntil.getGoodNum(goodstable.getGoodsid());
                radioOneImg.setText(goodNum + "/1");
            }

//            radioOneImg.addMouseListener(new MouseAdapter() {
//                @Override
//                public void mousePressed(MouseEvent e) {
//                    changeRadioView(1);
//                }
//            });
            this.add(radioOneImg);
        }
        return radioOneImg;
    }

    public void setRadioOneImg(JLabel radioOneImg) {
        this.radioOneImg = radioOneImg;
    }

    public JLabel getRadioTwoImg() {
        if (radioTwoImg == null) {
            radioTwoImg = new JLabel();
            radioTwoImg.setBounds(320, 120, 60, 60);
            radioTwoImg.setOpaque(false);
            radioTwoImg.setVisible(false);
            radioTwoImg.setText("99001");
            radioTwoImg.addMouseListener(new MouseAdapter() {
                @Override
                public void mouseEntered(MouseEvent e) {//mouseEntered 鼠标对准
//                   radioTwoImg.setText("99001");
                    if ("强化已满".equals(radioTwoImg.getText()))
                        return;
                    Goodstable goodstable = UserMessUntil.getgoodstable(new BigDecimal(radioTwoImg.getText()));
                    if (goodstable != null) {
                        ZhuFrame.getZhuJpanel().creatgoodtext(goodstable);
                    }
                }

                @Override
                public void mouseExited(MouseEvent e) {//鼠标移开
                    FormsManagement.HideForm(24);
                }
            });
            this.add(radioTwoImg);
        }
        return radioTwoImg;
    }

    public void setRadioTwoImg(JLabel radioTwoImg) {
        this.radioTwoImg = radioTwoImg;
    }

    //炼化文字
    public JLabel getConsumeOneLab() {
        if (consumeOneLab == null) {
            consumeOneLab = new JLabel();
            consumeOneLab.setBounds(280, 160, 180, 16);
            consumeOneLab.setForeground(Color.yellow);
            consumeOneLab.setFont(UIUtils.TEXT_HY14);
            consumeOneLab.setOpaque(false);
            //consumeOneLab.setVisible(false);
            consumeOneLab.setText("");
            this.add(consumeOneLab);
        }
        return consumeOneLab;
    }

    public void setConsumeOneLab(JLabel consumeOneLab) {
        this.consumeOneLab = consumeOneLab;
    }

    public JLabel getConsumeTwoLab() {
        if (consumeTwoLab == null) {
            consumeTwoLab = new JLabel();
            consumeTwoLab.setBounds(280, 190, 180, 16);
            consumeTwoLab.setForeground(Color.yellow);
            consumeTwoLab.setFont(UIUtils.TEXT_HY14);
            consumeTwoLab.setOpaque(false);
            // consumeTwoLab.setVisible(false);
            consumeTwoLab.setText("");
            this.add(consumeTwoLab);
        }
        return consumeTwoLab;
    }

    public void setConsumeTwoLab(JLabel consumeTwoLab) {
        this.consumeTwoLab = consumeTwoLab;
    }

    public int getBigType() {
        return bigType;
    }

    public void setBigType(int bigType) {
        this.bigType = bigType;
    }


    public JLabel[] getMaterialsLab() {
        if (materialsLab == null) {
            materialsLab = new JLabel[12];
            for (int i = 0; i < materialsLab.length; i++) {
                materialsLab[i] = new JLabel();
                materialsLab[i].setBounds(42 + 25 + i % 6 * 51, 297 - 15 + i / 6 * 51, 50, 50);
                materialsLab[i].setOpaque(false);
                materialsLab[i].addMouseListener(new MouseListenerMaterials(i, this));
                this.add(materialsLab[i]);
            }
        }
        return materialsLab;
    }

    public void setMaterialsLab(JLabel[] materialsLab) {
        this.materialsLab = materialsLab;
    }

    public int getRadioType() {
        return radioType;
    }

    public void setRadioType(int radioType) {
        this.radioType = radioType;
    }

    public BigDecimal getChooseStarCardId() {
        return chooseStarCardId;
    }

    public void setChooseStarCardId(BigDecimal chooseStarCardId) {
        this.chooseStarCardId = chooseStarCardId;
    }

    public BigDecimal getChooseMaterialsId() {
        return chooseMaterialsId;
    }

    public void setChooseMaterialsId(BigDecimal chooseMaterialsId) {
        this.chooseMaterialsId = chooseMaterialsId;
    }

    public BigDecimal getMoney() {
        return money;
    }

    public void setMoney(BigDecimal money) {
        this.money = money;
    }


    public BtnStarCard getCaozuoBtn() {
        if (caozuoBtn == null) {

            Sprite sprite = SpriteFactory.VloadSprite("resource/mouse/特效/xp-8-d.tcp", null);//特效路径;
            AstrolabeBorderAnimation astrolabeBorderAnimation = new AstrolabeBorderAnimation();
            astrolabeBorderAnimation.setSprite(sprite);
            astrolabeBorderAnimation.setX(200);
            astrolabeBorderAnimation.setY(50);
//            astrolabeBorderAnimationList.add(astrolabeBorderAnimation);
            astrolabeBorderAnimationArr[7] = astrolabeBorderAnimation;

            caozuoBtn = new BtnStarCard("inkImg/old/button/xpan8.png", 1, UIUtils.COLOR_BTNPUTONG, UIUtils.TEXT_HY16, "", 20,
                    this);
            caozuoBtn.setBounds(290, 331, 138, 65);
//            caozuoBtn.setVisible(false);
            this.add(caozuoBtn);
        }
        return caozuoBtn;
    }

    public void setCaozuoBtn(BtnStarCard caozuoBtn) {
        this.caozuoBtn = caozuoBtn;
    }

    public BtnStarCard getJoinBtn() {
        if (joinBtn == null) {
            Sprite sprite = SpriteFactory.VloadSprite("resource/mouse/特效/xp-7-d.tcp", null);//特效路径;
            AstrolabeBorderAnimation astrolabeBorderAnimation = new AstrolabeBorderAnimation();
            astrolabeBorderAnimation.setSprite(sprite);
            astrolabeBorderAnimation.setX(188);
            astrolabeBorderAnimation.setY(175);
//            astrolabeBorderAnimationList.add(astrolabeBorderAnimation);
            astrolabeBorderAnimationArr[6] = astrolabeBorderAnimation;
            joinBtn = new BtnStarCard("inkImg/old/button/xpan7.png", 1, UIUtils.COLOR_BTNPUTONG, UIUtils.TEXT_HY16, "", 21,
                    this);
            joinBtn.setBounds(407, 260, 114, 115);
            this.add(joinBtn);
        }
        return joinBtn;
    }

    public void setJoinBtn(BtnStarCard joinBtn) {
        this.joinBtn = joinBtn;
    }

    public BtnStarCard getFetchBtn() {
        if (fetchBtn == null) {
            Sprite sprite = SpriteFactory.VloadSprite("resource/mouse/特效/xp-6-d.tcp", null);//特效路径;
            AstrolabeBorderAnimation astrolabeBorderAnimation = new AstrolabeBorderAnimation();
            astrolabeBorderAnimation.setSprite(sprite);
            astrolabeBorderAnimation.setX(220);
            astrolabeBorderAnimation.setY(300);
//            astrolabeBorderAnimationList.add(astrolabeBorderAnimation);
            astrolabeBorderAnimationArr[5] = astrolabeBorderAnimation;
            fetchBtn = new BtnStarCard("inkImg/old/button/xpan6.png", 1, UIUtils.COLOR_BTNPUTONG, UIUtils.TEXT_HY16, "",
                    22, this);
            fetchBtn.setBounds(475, 135, 65, 137);
            this.add(fetchBtn);
        }
        return fetchBtn;
    }

    public void setFetchBtn(BtnStarCard fetchBtn) {
        this.fetchBtn = fetchBtn;
    }

    public BtnStarCard getSoulBackBtn() {
        if (soulBackBtn == null) {
            Sprite sprite = SpriteFactory.VloadSprite("resource/mouse/特效/xp-5-d.tcp", null);//特效路径;
            AstrolabeBorderAnimation astrolabeBorderAnimation = new AstrolabeBorderAnimation();
            astrolabeBorderAnimation.setSprite(sprite);
            astrolabeBorderAnimation.setX(330);
            astrolabeBorderAnimation.setY(375);
//            astrolabeBorderAnimationList.add(astrolabeBorderAnimation);
            astrolabeBorderAnimationArr[4] = astrolabeBorderAnimation;
            soulBackBtn = new BtnStarCard("inkImg/old/button/xpan5.png", 1, UIUtils.COLOR_BTNPUTONG, UIUtils.TEXT_HY16, "",
                    23, this);
            soulBackBtn.setBounds(402, 31, 115, 113);
            this.add(soulBackBtn);
        }
        return soulBackBtn;
    }

    public void setSoulBackBtn(BtnStarCard soulBackBtn) {
        this.soulBackBtn = soulBackBtn;
    }

    public BtnStarCard getExchangeBtn() {
        if (exchangeBtn == null) {
            Sprite sprite = SpriteFactory.VloadSprite("resource/mouse/特效/xp-4-d.tcp", null);//特效路径;
            AstrolabeBorderAnimation astrolabeBorderAnimation = new AstrolabeBorderAnimation();
            astrolabeBorderAnimation.setSprite(sprite);
            astrolabeBorderAnimation.setX(460);
            astrolabeBorderAnimation.setY(295);
//            astrolabeBorderAnimationList.add(astrolabeBorderAnimation);
            astrolabeBorderAnimationArr[3] = astrolabeBorderAnimation;

            exchangeBtn = new BtnStarCard("inkImg/old/button/xpan4.png", 1, UIUtils.COLOR_BTNTEXT, UIUtils.TEXT_FONT, "", 24,
                    this);
            exchangeBtn.setBounds(188, 265, 114, 116);
            this.add(exchangeBtn);
        }
        return exchangeBtn;
    }

    public void setExchangeBtn(BtnStarCard exchangeBtn) {
        this.exchangeBtn = exchangeBtn;
    }

    public BtnStarCard getSupplementBtn() {
        if (supplementBtn == null) {

            Sprite sprite = SpriteFactory.VloadSprite("resource/mouse/特效/xp-3-d.tcp", null);//特效路径;
            AstrolabeBorderAnimation astrolabeBorderAnimation = new AstrolabeBorderAnimation();
            astrolabeBorderAnimation.setSprite(sprite);
            astrolabeBorderAnimation.setX(530);
            astrolabeBorderAnimation.setY(155);
//            astrolabeBorderAnimationList.add(astrolabeBorderAnimation);
            astrolabeBorderAnimationArr[2] = astrolabeBorderAnimation;

            supplementBtn = new BtnStarCard("inkImg/old/button/xpan3.png", 1, UIUtils.COLOR_BTNTEXT, UIUtils.TEXT_FONT, "",
                    25, this);
            supplementBtn.setBounds(160, 147, 65, 140);
            this.add(supplementBtn);
        }
        return supplementBtn;
    }

    public void setSupplementBtn(BtnStarCard supplementBtn) {
        this.supplementBtn = supplementBtn;
    }


    public long getMaterialType() {
        return materialType;
    }

    public void setMaterialType(long materialType) {
        this.materialType = materialType;
    }


    public JLabel getStarArryImg() {
        if (starArryImg == null) {
            starArryImg = new JLabel();
            starArryImg.setBounds(227 + 25, 345 - 15, 47, 47);
            starArryImg.setOpaque(false);
            this.add(starArryImg);
        }
        return starArryImg;
    }

    public void setStarArryImg(JLabel starArryImg) {
        this.starArryImg = starArryImg;
    }

    public BtnStarCard getDeleteBtn() {
        if (deleteBtn == null) {
            Sprite sprite = SpriteFactory.VloadSprite("resource/mouse/特效/xp-2-d.tcp", null);//特效路径;
            AstrolabeBorderAnimation astrolabeBorderAnimation = new AstrolabeBorderAnimation();
            astrolabeBorderAnimation.setSprite(sprite);
            astrolabeBorderAnimation.setX(455);
            astrolabeBorderAnimation.setY(48);
//            astrolabeBorderAnimationList.add(astrolabeBorderAnimation);
            astrolabeBorderAnimationArr[1] = astrolabeBorderAnimation;
            deleteBtn = new BtnStarCard("inkImg/old/button/xpan2.png", 1, UIUtils.COLOR_BTNTEXT, UIUtils.TEXT_FONT, "", 26,
                    this);
            deleteBtn.setBounds(178, 43, 114, 113);
            this.add(deleteBtn);
        }
        return deleteBtn;
    }

    public void setDeleteBtn(BtnStarCard deleteBtn) {
        this.deleteBtn = deleteBtn;
    }

    public BtnStarCard getTransferBtn() {
        if (transferBtn == null) {
            Sprite sprite = SpriteFactory.VloadSprite("resource/mouse/特效/xp-1-d.tcp", null);//特效路径;
            AstrolabeBorderAnimation astrolabeBorderAnimation = new AstrolabeBorderAnimation();
            astrolabeBorderAnimation.setSprite(sprite);
            astrolabeBorderAnimation.setX(320);
            astrolabeBorderAnimation.setY(30);
//            astrolabeBorderAnimationList.add(astrolabeBorderAnimation);
            astrolabeBorderAnimationArr[0] = astrolabeBorderAnimation;
            transferBtn = new BtnStarCard("inkImg/old/button/xpan1.png", 1, UIUtils.COLOR_BTNTEXT, UIUtils.TEXT_FONT, "", 27,
                    this);
            transferBtn.setBounds(277, 23, 135, 61);
            this.add(transferBtn);
        }
        return transferBtn;
    }


    public void setTransferBtn(BtnStarCard transferBtn) {
        this.transferBtn = transferBtn;
    }

    public JLabel[] getGemBackImg() {
        if (gemBackImg == null) {
            gemBackImg = new JLabel[15];
            for (int i = 0; i < gemBackImg.length; i++) {
                gemBackImg[i] = new JLabel();
                gemBackImg[i].setBounds(260 + (i * 13), 206, 10, 16);
                gemBackImg[i].setOpaque(false);
                gemBackImg[i].addMouseListener(new MouseListenerStarCardMain(i, this));
                gemBackImg[i].setIcon(CutButtonImage.getImage("inkImg/old/background/S190.png", -1, -1));
                this.add(gemBackImg[i]);
            }

        }
        return gemBackImg;
    }

    public void setGemBackImg(JLabel[] gemBackImg) {
        this.gemBackImg = gemBackImg;
    }

    public JLabel[] getGemImg() {
        if (gemImg == null) {
            gemImg = new JLabel[15];
            for (int v = 0; v < gemImg.length; v++) {
                gemImg[v] = new JLabel();
                gemImg[v].setBounds(260 + (v * 13), 207, 8, 14);
                gemImg[v].setOpaque(false);
                gemImg[v].addMouseListener(new MouseListenerStarCardMain(v, this));
                gemImg[v].setIcon(CutButtonImage.getImage("inkImg/old/background/S189.png", -1, -1));
                gemImg[v].setVisible(false);
                this.add(gemImg[v]);
            }
        }

        return gemImg;
    }

    public void setGemImg(JLabel[] gemImg) {
        this.gemImg = gemImg;
    }

    @Override
    protected void paintComponent(Graphics g) {
        // TODO 画笔背景图
        super.paintComponent(g);


        try {
            if (iconBack == null) {
                iconBack = new ImageIcon();
            }
            //画闪烁框
            BufferedImage read = ImageIO.read(new File("inkImg/old/background/S280.png"));

            Graphics graphics = read.getGraphics();
            for (int i = 0; i < astrolabeBorderAnimationArr.length; i++) {
                Sprite sprite = astrolabeBorderAnimationArr[i].getSprite();
                sprite.updateToTime(ImageMixDeal.userimg.getTime(), 0);
                sprite.draw(graphics, astrolabeBorderAnimationArr[i].getX(), astrolabeBorderAnimationArr[i].getY());
            }

            drawBG(graphics);

            iconBack.setImage(read);
//            g.drawImage(iconBack.getImage(), 0, 0, 800, 349, this);
            g.drawImage(iconBack.getImage(), 0, 0, 700, 425, this);
            g.setColor(Color.white);
        } catch (IOException e) {
            e.printStackTrace();
        }
    }

    /**
     * 画开门动画
     *
     * @param g
     */
    private void drawBG(Graphics g) {
        long l = System.currentTimeMillis();
        l = l - time;
        if (time == 0l) {
        } else if (isPlayXPKM && l <= 1900) {
            tcp_xp_km.updateToTime(l, 1);
            tcp_xp_km.draw(g, 390, 230);
        } else {
            //动画结束操作
            setIsPlayXPKM(false);
            time = 0l;
        }
    }

    public JLabel getXpwenzi1() {
        if (xpwenzi1 == null) {
            xpwenzi1 = new JLabel();
            xpwenzi1.setBounds(290, 100, 60, 20);
            xpwenzi1.setOpaque(false);
            xpwenzi1.setVisible(false);
            xpwenzi1.setForeground(Color.white);
            xpwenzi1.setFont(UIUtils.TEXT_FONT);
            this.add(xpwenzi1);
        }
        return xpwenzi1;
    }

    public void setXpwenzi1(JLabel xpwenzi1) {
        this.xpwenzi1 = xpwenzi1;
    }

    public JLabel getXpwenzi2() {
        if (xpwenzi2 == null) {
            xpwenzi2 = new JLabel();
            xpwenzi2.setBounds(290, 100, 60, 20);
            xpwenzi2.setOpaque(false);
            xpwenzi2.setVisible(false);
            xpwenzi2.setForeground(Color.white);
            xpwenzi2.setFont(UIUtils.TEXT_FONT);
            this.add(xpwenzi2);
        }
        return xpwenzi2;
    }

    public void setXpwenzi2(JLabel xpwenzi2) {
        this.xpwenzi2 = xpwenzi2;
    }

    public JLabel getXpwenzi3() {
        if (xpwenzi3 == null) {
            xpwenzi3 = new JLabel();
            xpwenzi3.setBounds(290, 100, 60, 20);
            xpwenzi3.setOpaque(false);
            xpwenzi3.setVisible(false);
            xpwenzi3.setForeground(Color.white);
            xpwenzi3.setFont(UIUtils.TEXT_FONT);
            this.add(xpwenzi3);
        }
        return xpwenzi3;
    }

    public void setXpwenzi3(JLabel xpwenzi3) {
        this.xpwenzi3 = xpwenzi3;
    }

    public JLabel getXpwenzi4() {
        if (xpwenzi4 == null) {
            xpwenzi4 = new JLabel();
            xpwenzi4.setBounds(290, 100, 60, 20);
            xpwenzi4.setOpaque(false);
            xpwenzi4.setVisible(false);
            xpwenzi4.setForeground(Color.white);
            xpwenzi4.setFont(UIUtils.TEXT_FONT);
            this.add(xpwenzi4);
        }
        return xpwenzi4;
    }

    public void setXpwenzi4(JLabel xpwenzi4) {
        this.xpwenzi4 = xpwenzi4;
    }

    public JLabel getXpwenzi5() {
        if (xpwenzi5 == null) {
            xpwenzi5 = new JLabel();
            xpwenzi5.setBounds(290, 100, 60, 20);
            xpwenzi5.setOpaque(false);
            xpwenzi5.setVisible(false);
            xpwenzi5.setForeground(Color.white);
            xpwenzi5.setFont(UIUtils.TEXT_FONT);
            this.add(xpwenzi5);
        }
        return xpwenzi5;
    }

    public void setXpwenzi5(JLabel xpwenzi5) {
        this.xpwenzi5 = xpwenzi5;
    }

    public JLabel getXpwenzi6() {
        if (xpwenzi6 == null) {
            xpwenzi6 = new JLabel();
            xpwenzi6.setBounds(290, 100, 60, 20);
            xpwenzi6.setOpaque(false);
            xpwenzi6.setVisible(false);
            xpwenzi6.setForeground(Color.white);
            xpwenzi6.setFont(UIUtils.TEXT_FONT);
            this.add(xpwenzi6);
        }
        return xpwenzi6;
    }

    public void setXpwenzi6(JLabel xpwenzi6) {
        this.xpwenzi6 = xpwenzi6;
    }


}
